using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MasterLab
{
    public partial class frmObtenAgricola : Form
    {
        /*Administrador*/
        Administrador admin;
        frmPrincipal abuelo;
        public frmObtenAgricola(Administrador admin, frmPrincipal abuelo)
        {
            this.admin = admin;
            this.abuelo = abuelo;            
            InitializeComponent();
            /*LLenamos la tabla de agricolas*/
            this.listAgricolas.Items.AddRange(this.admin.obtenNomAgricolas());
        }

        public string obtenA()
        {
            return this.listAgricolas.Text;
        }
    }
}